 |
API Documentation
|
|
|
157 virtual void setSize (
int width,
int height) ;
215 virtual void setLabel (
const std::string_view& label) ;
virtual void updateWindow()
void setRatio(float widthOverHeight)
nkMaths::Point getPositionInScreen() const
virtual void importClassFromTree(nkExport::Node *rootNode) override
LAYOUT_TYPE
Defines the type of layout available.
Definition: LayoutType.h:12
virtual void setPositionInParent(nkMaths::Point position)
An interface to define objects that can be exported using this component.
Definition: Exportable.h:15
virtual void setVisibility(bool value)
Layout * getLayout() const
void removeChild(unsigned int index)
nkMaths::Rectangle getAreaInScreen() const
Represents a layout to organize sub-windows in a window.
Definition: Layout.h:12
nkImages::Image paintToImage(bool withFrame=false)
virtual const char * getLabel() const
nkMaths::Point getCoordRelativeFromAbsolute(const nkMaths::Point &absCoords)
nkMaths::Point getCoordAbsoluteFromRelative(const nkMaths::Point &relCoords)
virtual void setLabel(const std::string_view &label)
virtual void setHeight(int height)
virtual void setAreaInParent(const nkMaths::Rectangle &area)
void setMaxSize(unsigned int width, unsigned int height)
unsigned int getZDepth() const
virtual int getLayoutAllowedWidth() const
void simulateEvent(const InputDescriptor &inputDescription)
virtual Layout * setLayout(LAYOUT_TYPE layoutType)
nkMaths::Rectangle getAreaInParent() const
Base class for any graphical component.
Definition: Component.h:12
void unloadWithChildren()
void setComponentName(const std::string_view &name)
void setEnabled(bool value)
virtual void setTheme(Theme *theme)
bool isInitialized() const
void setVisibleOnLoad(bool value)
virtual void exportClassToTree(nkExport::Node *rootNode) override
virtual void setParentComponent(Component *parent, bool makeItVisible=true)
Component * getParentComponent() const
A node in the tree structure representing the data to export / import.
Definition: Node.h:42
COMPONENT_TYPE
Available component types.
Definition: ComponentType.h:12
virtual void setAreaInScreen(const nkMaths::Rectangle &area)
virtual nkMaths::Point getBorderExtents() const
COMPONENT_TYPE getComponentType() const
virtual void setPositionInScreen(nkMaths::Point position)
Represents a 2D Point.
Definition: Point.h:12
Component * getChild(unsigned int index)
virtual int getLayoutAllowedHeight() const
void setMinSize(unsigned int width, unsigned int height)
virtual void setSize(int width, int height)
virtual int getLayoutAllowedOffsetX() const
bool isForegroundWindow() const
A theme used to style the windows in the component.
Definition: Theme.h:44
bool getVisibility() const
virtual void exportIntrospection(nkExport::Node *rootNode)
const char * getComponentName() const
Represents a 2D rectangle.
Definition: Rectangle.h:12
nkMaths::Point getPositionInParent() const
void removeChild(Component *child)
bool getVisibleOnLoad() const
Encompasses all API of component NilkinsWinUi.
Definition: Button.h:7
virtual int getLayoutAllowedOffsetY() const
void addChild(Component *child, bool makeItVisible=true)
Holds all information required for an image, with ownership over the data.
Definition: Image.h:14
virtual void setWidth(int width)
unsigned int getChildIndex(Component *child)